package com.hliushi.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 推视频和图片表
 */
@ApiModel(value = "MoviePicClip")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "movie_pic_clip")
public class MoviePicClip implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    @ApiModelProperty(value = "主键id")
    private Long id;
    @TableField(value = "`name`")
    @ApiModelProperty(value = "")
    private String name;
    /**
     * 电影id
     */
    @TableField(value = "movie_id")
    @ApiModelProperty(value = "电影id")
    private Long movieId;
    /**
     * 1是有效, 0是无效
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "1是有效, 0是无效")
    private Boolean status;
    /**
     * 1是视频, 0是图集
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "1是视频, 0是图集")
    private Boolean type;
    /**
     * 评分
     */
    @TableField(value = "`rank`")
    @ApiModelProperty(value = "评分")
    private Byte rank;
    /**
     * 封面
     */
    @TableField(value = "cover")
    @ApiModelProperty(value = "封面")
    private String cover;
    /**
     * 视频url路径
     */
    @TableField(value = "video_url")
    @ApiModelProperty(value = "视频url路径")
    private String videoUrl;
    /**
     * 赞的次数
     */
    @TableField(value = "zan_times")
    @ApiModelProperty(value = "赞的次数")
    private Integer zanTimes;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}